package cn.edu.just.firstjavaapp.l7;

public class GenderSalaryCheck implements Check{
    @Override
    public boolean test(Person p) {
        if(p.gender.equals("Female")&&p.salary>5500)
            return true;
        return false;
    }
}
